function ApplicationWindow(title) {
	
	var MenuController = require('controller/MenuController');
	
	
	var self = Ti.UI.createWindow({
		title:'Products',
		exitOnClose:true,
		navBarHidden:false,
		backgroundColor:'#ffffff'
	});
	
	menuControler = new MenuController(title);
	
	var ListWindow = require('ui/common/ListWindow');
	listWindow = new ListWindow(title,menuControler);
	self.add(listWindow);
	
	listWindow.addEventListener('itemSelected', function(e) {
		//create detail view container
		// var detailView = new DetailView();
		// var detailContainerWindow = Ti.UI.createWindow({
			// title:'Product Details',
			// navBarHidden:false,
			// backgroundColor:'#ffffff'
		// });
		// detailContainerWindow.add(detailView);
		// detailView.fireEvent('itemSelected',e);
		// detailContainerWindow.open();
	});
	
	return self;
};

module.exports = ApplicationWindow;
